package com.kang.service.warMap.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kang.CommonsUtils;
import com.kang.bean.bot.WoodStore;
import com.kang.mapper.WoodStoreMapper;
import com.kang.service.warMap.WoodStoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @program: service
 * @description:
 * @author: K.faWu
 * @create: 2022-06-10 13:58
 **/
@Service
public class WoodStoreServiceImpl extends ServiceImpl<WoodStoreMapper, WoodStore> implements WoodStoreService {

    @Autowired
    private WoodStoreMapper woodStoreMapper;

    @Override
    public WoodStore getStore(String accountCode, String groupCode) {
        QueryWrapper<WoodStore> queryWrapper = CommonsUtils.selectCode(accountCode, groupCode);
        return woodStoreMapper.selectOne(queryWrapper);
    }
}
